package net.xinshi.model;

import net.xinshi.utils.ErrorCode;

public class BaseOutputDTO extends BaseParameterDTO {

	private static final long serialVersionUID = 5750566845117908426L;

	/**
	 * 返回结果编码
	 */
	private String code;

	/**
	 * 错误描述
	 */
	private String msg;


	public BaseOutputDTO() {
		this.code = ErrorCode.SUCCESS.getCode();
		this.msg = ErrorCode.SUCCESS.getMsg();
	}

	public BaseOutputDTO(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean isSuccessMsg(){
		return this.code.equals(ErrorCode.SUCCESS.getCode()) ? true : false;
	}
}
